

<%@ page import="com.na.onlineservey.QuestionAnsweringOption" %>
<form name='gFormQuestionAnsweringOption' id='gFormQuestionAnsweringOption'>
  <g:hiddenField name="id" value="${questionAnsweringOptionInstance?.id}" />
  <g:hiddenField name="version" value="${questionAnsweringOptionInstance?.version}" />
  <div id="remote-content-questionAnsweringOptionInstance"></div>
  <fieldset  class="ui-state-default ui-corner-all">
    <legend class="ui-jqgrid-titlebar ui-widget-header  ui-helper-clearfix">Create QuestionAnsweringOption</legend>
     <table>
      

            <tr>
              <td><g:message code="questionAnsweringOption.code.label" default="Code" /></td>
                <td><g:textField name="code" value="${fieldValue(bean: questionAnsweringOptionInstance, field: 'code')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="questionAnsweringOption.description.label" default="Description" /></td>
                <td><g:textField name="description" value="${fieldValue(bean: questionAnsweringOptionInstance, field: 'description')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="questionAnsweringOption.note.label" default="Note" /></td>
                <td><g:textField name="note" value="${fieldValue(bean: questionAnsweringOptionInstance, field: 'note')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="questionAnsweringOption.option.label" default="Option" /></td>
                <td><g:textField name="option" value="${fieldValue(bean: questionAnsweringOptionInstance, field: 'option')}" />
</td>
            </tr>
          

            <tr>
              <td><g:message code="questionAnsweringOption.question.label" default="Question" /></td>
                <td><g:select name="question.id" id="question" from="${com.na.onlineservey.Question.list()}" optionKey="id" value="${questionAnsweringOptionInstance?.question?.id}"  />
</td>
            </tr>
          
         </table>
  </fieldset>
  <br/>
  <div class="buttons">
    <span class="button"><input type="button" name="create-button" id="create-button" class="ui-button ui-widget ui-state-default ui-corner-all" value="${message(code: 'default.button.create.label', default: 'Create')}" onclick="executeAjaxQuestionAnsweringOption();"/></span>
    <span class="button"><input type='button' name="delete-button" id="delete-button" class="ui-button ui-widget ui-state-default ui-corner-all" value='Delete' onclick="deleteAjaxQuestionAnsweringOption();"/></span>
    <span class="button"><input type="button" name="cancel-button" id="cancel-button" class="ui-button ui-widget ui-state-default ui-corner-all" onclick=" reset_form('#gFormQuestionAnsweringOption');" value="Cancel"/></span>
  </div>
</form>
